<?php
header("Content-Type:text/html;charset=utf-8");//防止中文乱码
//第一步：连接数据库，指定数据库
  //require ("dbcon.php");
   $db=new mysqli("localhost","root","","db_wish","3306");//mysqli类的实例化
   if ($db->connect_error){
      die("连接失败：".$db->connect_error);
   }
  // echo "连接成功！";
  $db->query("set names utf8");
  //include "list_html.php";
   ?>